/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ca.ubc.icapture.genapha.forms;

/**
 *
 * @author btripp
 */
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;

/**
 * Form bean for a Struts application.
 * @version 	1.0
 * @author
 */
public class LoginForm extends ValidatorForm
{

    private String submitAction = null;
    private String name = null;
    private String password = null;

    @Override
    public void reset(ActionMapping mapping, HttpServletRequest request)
    {
        submitAction = null;
    }

    /**
     * Returns the submitAction.
     * @return String
     */
    public String getSubmitAction()
    {
        return submitAction;
    }

    /**
     * Sets the submitAction.
     * @param submitAction The submitAction to set
     */
    public void setSubmitAction(String submitAction)
    {
        this.submitAction = submitAction;
    }

    /**
     * Returns the name.
     * @return String
     */
    public String getName()
    {
        return name;
    }

    /**
     * Returns the password.
     * @return String
     */
    public String getPassword()
    {
        return password;
    }

    /**
     * Sets the name.
     * @param name The name to set
     */
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * Sets the password.
     * @param password The password to set
     */
    public void setPassword(String password)
    {
        this.password = password;
    }
}
